import { createRouter, createWebHashHistory } from 'vue-router'

import Index from '../components/index.vue'
import Success from '../components/success.vue'

const routes = [
    {
        path : '/',
        component : Index,
    },
    {
        
        path : '/success',
        component : Success
     
    }
]

const router = createRouter({
    history:createWebHashHistory(),
    // routes:routes
    // key和value一样，可以省略
    routes
})

export default router
